#ifndef GUIINPUTBOX_H
#define GUIINPUTBOX_H

#include <string>
#include "gui/GuiControl.h"

class GuiInputBox : public GuiControl {
public:
   GuiInputBox(unsigned int textcolor, unsigned int bgcolor, float x, float y, float wide, float tall);

   inline void SetText(std::string & text) {_curText = text;}
   inline std::string GetText() {return _curText;}

   virtual void Draw(Device * device, double tElapsed) const;
   virtual void Update(long mouseX, long mouseY, unsigned long key, double tElapsed);

   static const float CursorBlinkSpeed;

private:
   std::string _curText;
   unsigned int _bgcolor, _txtcolor;
   double _cursorDelay;
};

#endif

